import request from "../request";

// 上传图片（获取alioss配置环境）
export function uploadApi() {
    return request.get("file/upload/oss/policy");
}

export const fileUploadOssPolicy = async () => {
    return await request.get("file/upload/oss/policy")
}

// 上传图片
export function imgUpload(params: any) {
    return request.post("file/upload/local", params);
}
